<script>
import Common from "@/mixins/order/commonbg.js";
import OrderService from "@/api/order/OrderService.js";
import PPMForm from "@/crm3.0part7-ppm/core/ppmForm.vue";
export default {
  name: "ipran10461087",
  mixins: [PPMForm, Common],
  data() {
    return {
      //IPRAN	正常变更	帐务变更
    };
  },
  mounted() {},

  computed: {},
  methods: {
    getInputGridValue(obj) {
      if (obj.key == "10461593-100010007") {
        let user = JSON.parse(sessionStorage.getItem("crm3-userinfo"));
        if (user.orgId != "1944640" && obj.data.orgId == "1944640") {
          this.formData['10461593-100010007'].text = '';
          this.formData['10461593-100010007'].value = '';
          this.$confirm("省客户不能选择集团公司为收款单位!", "提示", {
            confirmButtonText: "关闭",
            showCancelButton: false,
            type: "warning",
            center: true,
          });
        }else {
          this.formData['10461593-100010007'].text = obj.data.accountUnitName;
          this.formData['10461593-100010007'].value = obj.data.accountUnitCode;
        }
      }else if(obj.key == "10461594-100010007"){
        let user = JSON.parse(sessionStorage.getItem("crm3-userinfo"));
        if (user.orgId != "1944640" && obj.data.orgId == "1944640") {
          this.formData['10461594-100010007'].text = '';
          this.formData['10461594-100010007'].value = '';
          this.$confirm("省客户不能选择集团公司为收款单位!", "提示", {
            confirmButtonText: "关闭",
            showCancelButton: false,
            type: "warning",
            center: true,
          });
        }else {
          this.formData['10461594-100010007'].text = obj.data.accountUnitName;
          this.formData['10461594-100010007'].value = obj.data.accountUnitCode;
        }
      }
    },
  },
};
</script>

